#include "video.h"
#include "collection.h"

#include <QFile>

Video::Video(QString name) :
        m_name(name)
{
    m_tags = Collection::getTags(m_name);
    m_cover = Collection::getCover(m_name);
    m_files = Collection::getFiles(m_name);
    m_path = Collection::getPath(m_name);
}

void Video::addTag(QString tag)
{
    m_tags.append(tag);
    Collection::addTag(tag, m_name);
    QFile tagfile(m_path + "/Tags.txt");
}
